package com.hongyuan.venue.ui.home.beans;

import com.hongyuan.venue.R;
import com.hongyuan.venue.utils.TimeUtil;

import java.util.List;

public class Venue {


    /**
     * avg : 0
     * os_banner : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/4d6982101ea2224b54e340ca4339bc031f16355a_1200x800.jpg,http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/9165b96b84cd17cddf70bcfa80b209d2e8a7a31c_500x375.jpg,http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/9efcf849412622016a85fc3ed8c73da97d138d32_500x345.jpg
     * banner : ["http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/4d6982101ea2224b54e340ca4339bc031f16355a_1200x800.jpg","http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/9165b96b84cd17cddf70bcfa80b209d2e8a7a31c_500x375.jpg","http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201126/9efcf849412622016a85fc3ed8c73da97d138d32_500x345.jpg"]
     * os_name : 乒乓球赛馆
     * os_tel : 0572-85469658
     * os_start_time : 08:00
     * os_end_time : 22:00
     * os_week : 星期一,星期二,星期三,星期四,星期五
     * address : 浙江省湖州市吴兴区爱山街道
     * os_address : 爱山街道
     * gc_list : [{"gc_id":3,"gc_name":"武术格斗","type":[{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":1},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":1},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":1},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":1},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":1}]},{"gc_id":5,"gc_name":"游泳","type":[{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":1},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":1},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":1},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":1},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":1}]},{"gc_id":6,"gc_name":"水上运动","type":[{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":0},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":0},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":0},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":0},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":0}]},{"gc_id":15,"gc_name":"乒乓球","type":[{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":0},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":0},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":0},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":0},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":0}]},{"gc_id":35,"gc_name":"户外运动","type":[{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":0},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":0},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":0},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":0},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":0}]}]
     * card_list : []
     * os_lat : 30.862707
     * os_lng : 120.108225
     * osf : [{"osf_id":1,"osf_name":"有氧器械区","osf_type":1},{"osf_id":3,"osf_name":"多功能器械区","osf_type":1},{"osf_id":7,"osf_name":"空中瑜伽馆","osf_type":1}]
     * site_service_names : ["停车场","饮料"]
     * course_train_list : [{"ct_price":"135.00","class_hour":1,"mi_realname":null,"ct_name":"开导开导","ct_id":20,"ct_img":"http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201201/5a1415b160398f8dede64c93138ca4b068a4abe2_900x600.jpg"}]
     * gym_evaluation : []
     * coupon_list : [{"coupon_id":25,"coupon_name":"大优惠","coupon_type":2,"coupon_money":"20.00","start_time":1606752000,"end_time":1610726399,"coupon_note":"dd ","min_money":"150.00","is_verification":2,"date_num":0,"cf_suit":0,"coupon_for_str":""}]
     */

    private int avg;
    private String os_banner;
    private String os_name;
    private String os_tel;
    private String os_start_time;
    private String os_end_time;
    private String os_week;
    private String address;
    private String os_address;
    private String os_lat;
    private String os_lng;
    private List<String> banner;
    private List<GcListBean> gc_list;
    private List<?> card_list;
    private List<OsfBean> osf;
    private List<String> site_service_names;
    private List<CourseTrainListBean> course_train_list;
    private List<?> gym_evaluation;
    private List<CouponListBean> coupon_list;

    /*
     * 营业时间
     * */
    public String getBusinessHours(){
        return "周一至周日 "+ TimeUtil.formatDate(os_start_time, TimeUtil.dateFormatHMS,TimeUtil.dateFormatHM)+
                "-"+TimeUtil.formatDate(os_end_time,TimeUtil.dateFormatHMS,TimeUtil.dateFormatHM);
    }

    /*
     * 标签显示
     * */
    public String getMark(){
        String str = "";
        for(OsfBean bean : osf){
            str += "/"+bean.getOsf_name();
        }

        if(str.length() > 0){
            return str.substring(1);
        }
        return str;
    }

    public int getAvg() {
        return avg;
    }

    public void setAvg(int avg) {
        this.avg = avg;
    }

    public String getOs_banner() {
        return os_banner;
    }

    public void setOs_banner(String os_banner) {
        this.os_banner = os_banner;
    }

    public String getOs_name() {
        return os_name;
    }

    public void setOs_name(String os_name) {
        this.os_name = os_name;
    }

    public String getOs_tel() {
        return os_tel;
    }

    public void setOs_tel(String os_tel) {
        this.os_tel = os_tel;
    }

    public String getOs_start_time() {
        return os_start_time;
    }

    public void setOs_start_time(String os_start_time) {
        this.os_start_time = os_start_time;
    }

    public String getOs_end_time() {
        return os_end_time;
    }

    public void setOs_end_time(String os_end_time) {
        this.os_end_time = os_end_time;
    }

    public String getOs_week() {
        return os_week;
    }

    public void setOs_week(String os_week) {
        this.os_week = os_week;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOs_address() {
        return os_address;
    }

    public void setOs_address(String os_address) {
        this.os_address = os_address;
    }

    public String getOs_lat() {
        return os_lat;
    }

    public void setOs_lat(String os_lat) {
        this.os_lat = os_lat;
    }

    public String getOs_lng() {
        return os_lng;
    }

    public void setOs_lng(String os_lng) {
        this.os_lng = os_lng;
    }

    public List<String> getBanner() {
        return banner;
    }

    public void setBanner(List<String> banner) {
        this.banner = banner;
    }

    public List<GcListBean> getGc_list() {
        return gc_list;
    }

    public void setGc_list(List<GcListBean> gc_list) {
        this.gc_list = gc_list;
    }

    public List<?> getCard_list() {
        return card_list;
    }

    public void setCard_list(List<?> card_list) {
        this.card_list = card_list;
    }

    public List<OsfBean> getOsf() {
        return osf;
    }

    public void setOsf(List<OsfBean> osf) {
        this.osf = osf;
    }

    public List<String> getSite_service_names() {
        return site_service_names;
    }

    public void setSite_service_names(List<String> site_service_names) {
        this.site_service_names = site_service_names;
    }

    public List<CourseTrainListBean> getCourse_train_list() {
        return course_train_list;
    }

    public void setCourse_train_list(List<CourseTrainListBean> course_train_list) {
        this.course_train_list = course_train_list;
    }

    public List<?> getGym_evaluation() {
        return gym_evaluation;
    }

    public void setGym_evaluation(List<?> gym_evaluation) {
        this.gym_evaluation = gym_evaluation;
    }

    public List<CouponListBean> getCoupon_list() {
        return coupon_list;
    }

    public void setCoupon_list(List<CouponListBean> coupon_list) {
        this.coupon_list = coupon_list;
    }

    public static class GcListBean {
        /**
         * gc_id : 3
         * gc_name : 武术格斗
         * type : [{"days":"2020-12-01","week_name":"星期二","week":"2","is_yuding":1},{"days":"2020-12-02","week_name":"星期三","week":"3","is_yuding":1},{"days":"2020-12-03","week_name":"星期四","week":"4","is_yuding":1},{"days":"2020-12-04","week_name":"星期五","week":"5","is_yuding":1},{"days":"2020-12-05","week_name":"星期六","week":"6","is_yuding":2},{"days":"2020-12-06","week_name":"星期日","week":"0","is_yuding":2},{"days":"2020-12-07","week_name":"星期一","week":"1","is_yuding":1}]
         */

        private int gc_id;
        private String gc_name;
        private List<TypeBean> type;

        public int getGc_id() {
            return gc_id;
        }

        public void setGc_id(int gc_id) {
            this.gc_id = gc_id;
        }

        public String getGc_name() {
            return gc_name;
        }

        public void setGc_name(String gc_name) {
            this.gc_name = gc_name;
        }

        public List<TypeBean> getType() {
            return type;
        }

        public void setType(List<TypeBean> type) {
            this.type = type;
        }

        public static class TypeBean {
            /**
             * days : 2020-12-01
             * week_name : 星期二
             * week : 2
             * is_yuding : 1
             */

            private String days;
            private String week_name;
            private String week;
            private int is_yuding;

            public String getDays() {
                return days;
            }

            public void setDays(String days) {
                this.days = days;
            }

            public String getWeek_name() {
                return week_name;
            }

            public void setWeek_name(String week_name) {
                this.week_name = week_name;
            }

            public String getWeek() {
                return week;
            }

            public void setWeek(String week) {
                this.week = week;
            }

            public int getIs_yuding() {
                return is_yuding;
            }

            public void setIs_yuding(int is_yuding) {
                this.is_yuding = is_yuding;
            }

            public int getBg(){
                if(is_yuding == 1){
                    return R.drawable.shape_radius6_23c095;
                }else{
                    return R.drawable.shape_radius6_cccccc;
                }
            }
        }
    }

    public static class OsfBean {
        /**
         * osf_id : 1
         * osf_name : 有氧器械区
         * osf_type : 1
         */

        private int osf_id;
        private String osf_name;
        private int osf_type;

        public int getOsf_id() {
            return osf_id;
        }

        public void setOsf_id(int osf_id) {
            this.osf_id = osf_id;
        }

        public String getOsf_name() {
            return osf_name;
        }

        public void setOsf_name(String osf_name) {
            this.osf_name = osf_name;
        }

        public int getOsf_type() {
            return osf_type;
        }

        public void setOsf_type(int osf_type) {
            this.osf_type = osf_type;
        }
    }

    public static class CourseTrainListBean {
        /**
         * ct_price : 135.00
         * class_hour : 1
         * mi_realname : null
         * ct_name : 开导开导
         * ct_id : 20
         * ct_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20201201/5a1415b160398f8dede64c93138ca4b068a4abe2_900x600.jpg
         */

        private String ct_price;
        private int class_hour;
        private Object mi_realname;
        private String ct_name;
        private int ct_id;
        private String ct_img;

        public String getCt_price() {
            return ct_price;
        }

        public void setCt_price(String ct_price) {
            this.ct_price = ct_price;
        }

        public int getClass_hour() {
            return class_hour;
        }

        public void setClass_hour(int class_hour) {
            this.class_hour = class_hour;
        }

        public Object getMi_realname() {
            return mi_realname;
        }

        public void setMi_realname(Object mi_realname) {
            this.mi_realname = mi_realname;
        }

        public String getCt_name() {
            return ct_name;
        }

        public void setCt_name(String ct_name) {
            this.ct_name = ct_name;
        }

        public int getCt_id() {
            return ct_id;
        }

        public void setCt_id(int ct_id) {
            this.ct_id = ct_id;
        }

        public String getCt_img() {
            return ct_img;
        }

        public void setCt_img(String ct_img) {
            this.ct_img = ct_img;
        }
    }

    public static class CouponListBean {
        /**
         * coupon_id : 25
         * coupon_name : 大优惠
         * coupon_type : 2
         * coupon_money : 20.00
         * start_time : 1606752000
         * end_time : 1610726399
         * coupon_note : dd
         * min_money : 150.00
         * is_verification : 2
         * date_num : 0
         * cf_suit : 0
         * coupon_for_str :
         */

        private int coupon_id;
        private String coupon_name;
        private int coupon_type;
        private String coupon_money;
        private long start_time;
        private long end_time;
        private String coupon_note;
        private String min_money;
        private int is_verification;
        private int date_num;
        private int cf_suit;
        private String coupon_for_str;

        public int getCoupon_id() {
            return coupon_id;
        }

        public void setCoupon_id(int coupon_id) {
            this.coupon_id = coupon_id;
        }

        public String getCoupon_name() {
            return coupon_name;
        }

        public void setCoupon_name(String coupon_name) {
            this.coupon_name = coupon_name;
        }

        public int getCoupon_type() {
            return coupon_type;
        }

        public void setCoupon_type(int coupon_type) {
            this.coupon_type = coupon_type;
        }

        public String getCoupon_money() {
            return coupon_money;
        }

        public void setCoupon_money(String coupon_money) {
            this.coupon_money = coupon_money;
        }

        public long getStart_time() {
            return start_time;
        }

        public void setStart_time(long start_time) {
            this.start_time = start_time;
        }

        public long getEnd_time() {
            return end_time;
        }

        public void setEnd_time(long end_time) {
            this.end_time = end_time;
        }

        public String getCoupon_note() {
            return coupon_note;
        }

        public void setCoupon_note(String coupon_note) {
            this.coupon_note = coupon_note;
        }

        public String getMin_money() {
            return min_money;
        }

        public void setMin_money(String min_money) {
            this.min_money = min_money;
        }

        public int getIs_verification() {
            return is_verification;
        }

        public void setIs_verification(int is_verification) {
            this.is_verification = is_verification;
        }

        public int getDate_num() {
            return date_num;
        }

        public void setDate_num(int date_num) {
            this.date_num = date_num;
        }

        public int getCf_suit() {
            return cf_suit;
        }

        public void setCf_suit(int cf_suit) {
            this.cf_suit = cf_suit;
        }

        public String getCoupon_for_str() {
            return coupon_for_str;
        }

        public void setCoupon_for_str(String coupon_for_str) {
            this.coupon_for_str = coupon_for_str;
        }
    }
}
